package com.tsingteng.cosfun.ui.focus;

import android.content.Context;
import android.view.Gravity;
import android.view.View;

import com.tsingteng.cosfun.R;
import com.tsingteng.cosfun.widget.view.BadgeView;

public class NoticeCountUtil {
    static BadgeView badgeView = null;

    public static void setGuanzhuCount(Context context, View view, int count) {
        if (badgeView == null) {
            badgeView = new BadgeView(context);
        }
        badgeView.setTargetView(view);
        badgeView.setBadgeGravity(Gravity.RIGHT);
        badgeView.setBadgeCount(count);
        badgeView.setBackground(20, context.getResources().getColor(R.color.text_color_9));
        badgeView.setHideOnNull(false);
    }
}
